package com.zhouyu.service;

import org.springframework.beans.factory.SmartFactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author caodan
 * @version 1.0
 * @deacription
 * @date 2025-03-13 8:42
 */
@Component
public class FactoryBeanDemo implements SmartFactoryBean<User> {
	@Override
	public User getObject() throws Exception {
		return new User();
	}

	@Override
	public Class<?> getObjectType() {
		return User.class;
	}
}
